﻿using System;
using System.Runtime.InteropServices;

public static class DllMgr
{
    // 必须放在Plugins文件夹下面
    private const string DllPath = @"Dll2.dll";
    
    [DllImport(DllPath, EntryPoint = "add")]
    public static extern int Add(int a, int b);
    
    [DllImport(DllPath, EntryPoint = "minus")]
    public static extern int Minus(int a, int b);
    
    [DllImport(DllPath, EntryPoint = "multiply")]
    public static extern int Multiply(int a, int b);
    
    [DllImport(DllPath, EntryPoint = "divide")]
    public static extern double Divide(int a, int b);
    
    [DllImport(DllPath, EntryPoint = "upper")]
    public static extern IntPtr Upper(IntPtr content);
    
    [DllImport(DllPath, EntryPoint = "set_unity_log_func")]
    public static extern IntPtr SetUnityLogFunc(GameApp.CLog unityLogFunc);
}